home *** CD-ROM | disk | FTP | other *** search
Text File | 1989-08-22 | 2.2 KB | 54 lines | [TEXT/GEOL] |
- Item 7648877 8-Aug-89 17:22
-
- From: ATTACHMATE Attachmate, John Bartleson,PRT
-
- To: MACAPP.TECH$ MACAPP Tech
-
- cc: MACAPP.TEST MacApp SQA Team
- APPLE.BUGS Apple Bugs Reporting
-
- Sub: sizeSuperView ignored
-
- <<<<< MacApp Bug Report >>>>>
-
- Summary: xxxxSuperView attributes of MacApp views are ignored at view
- creation.
-
- When a MacApp 2.0 window is created (NewTemplateWindow) with dontAdaptToScreen
- the sizeSuperView and sizeRelSuperView attributes are ignored and the subviews
- are sized according to the static sizes given in the view resource. Later,
- when the user resizes the window, the subviews _are_ sized according to these
- attributes. This causes several problems:
- 1. If the window is to be sized with TxxxWindow.IRes when created, for
- example to adapt it to the height of the menu bar, the subviews don't get
- correspondingly resized.
- 2. When creating views in ViewEdit, it's common to have two overlapping views
- that are the same size and at the same location, such as a TEView on top of
- its scroller. Since ViewEdit doesn't have any way to access hidden views
- without the mess of hierarchy changing, I'd like to draw the subview
- smaller than the superview behind it (so the superview is visible) and set
- the subview's size attributes to sizeSuperView. But this doesn't work at
- view creation time and I'm forced to DeRez the resource and set the static
- size myself. Yuk!
- 3. The documentation (View Architecture Release Notes) is misleading: one
- would assume that sizeSuperView means _always_ sizeSuperView, not just when
- the superview _changes_ size.
-
- There are several workarounds to this problem, and it may be either a bug or a
- design oversight, but I believe that MacApp should always take care of
- sizeDeterminer's in the view hierarchy at view creation time.
-
- Reproducibility: 100%
- MacApp Version: 2.0ß9
- Software Configuration: System 6.0.3, MPW 3.0, MultiFinder 6.1ß7
- Hardware Configuration: Mac II 4MB, 40 MB internal
-
- John Bartleson
- Attachmate Corp.
- 13231 SE 36th St.
- Bellevue, WA 98006
- Phone:
- (206) 644-4010 Ext 315 (operator answered)
- (206) 562-7315 (direct)
-
-